﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace UnityTemplate.ApiModel
{
    /// <summary>
    /// 全局状态码
    /// </summary>
    public static class ApiStatus
    {
        /// <summary>
        /// 成功
        /// </summary>
        public const int OK = 200;

        public const int ERROR = 1;

        public const int WARNING = 2;
        /// <summary>
        /// 字段校验错误
        /// </summary>
        public const int FieldError = 3;

        /// <summary>
        /// 用户注册失败
        /// </summary>
        public const int FailedToRegister = 201;

        /// <summary>
        /// 用户已存在
        /// </summary>
        public const int UserExist = 203;
    }
}
